package co.edu.unal.geditor.model;

import java.awt.Color;
import java.awt.Point;

public abstract class ClosedGraphElement extends GeometricGraphElement
{
	private static final long serialVersionUID = 1L;

	// method overloading
	protected ClosedGraphElement( Point pUL, Point pBD )
	{
		// call super class constructor
		super( pUL, pBD );
		
		
		setFillColor( defaultFillingColor );
		setLinesColor( defaultLinesColor);
	}

	// method overloading
	protected ClosedGraphElement( Point pUL, Point pBD, Color color )
	{
		// call super class constructor
		super( pUL, pBD, color );

		setFillColor( defaultFillingColor );
		setLinesColor( defaultLinesColor );
	}

	// method overloading
	protected ClosedGraphElement( Point pUL, Point pBD, Color color, int nLineWidth )
	{
		// call super class constructor
		super( pUL, pBD, color, nLineWidth );

		setFillColor( defaultFillingColor );
		setLinesColor( defaultLinesColor );
	}

	// method overloading
	protected ClosedGraphElement( Point pUL, Point pBD, Color color, int nLineWidth, Color fillColor )
	{
		// call super class constructor
		super( pUL, pBD, color, nLineWidth );

		setFillColor( fillColor );
	}


	public static void setDefaultFillingColor(Color newDefFillingColor){
		defaultFillingColor=newDefFillingColor;
	}
	public static Color getDefaultFillingColor() {
		return defaultFillingColor;
	}

	// fill color

	protected static Color defaultFillingColor=Color.WHITE;

	
}